package uoc.biblioteca.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import uoc.biblioteca.mappings.object.RolVo;
import uoc.biblioteca.mappings.object.UserVo;


public class UserEditForm extends BaseForm {
	
	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private UserVo[] users;
	
	private Integer id;
	private RolVo rol;
	private String name;
	private String nick;
	private String pwd;
	private String dni;
	private String mail;
	private String tipus;
	private String subtipus;
	private String idp;
	private String idRolSelect;

	
	 
	 /** 
		 * Method reset
		 * @param mapping
		 * @param request
		 */
		public void reset(ActionMapping mapping, HttpServletRequest request) {

			users = new UserVo[0];
		}
	 
	 
	 /**
	  * Getters and Setters
	  * 
	  */
	 
	 public UserVo[] getUsers() {
		return users;
	}

	public void setUsers(UserVo[] users) {
		this.users = users;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public RolVo getRol() {
		return rol;
	}


	public void setRol(RolVo rol) {
		this.rol = rol;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getNick() {
		return nick;
	}


	public void setNick(String nick) {
		this.nick = nick;
	}


	public String getPwd() {
		return pwd;
	}


	public void setPwd(String pwd) {
		this.pwd = pwd;
	}


	public String getDni() {
		return dni;
	}


	public void setDni(String dni) {
		this.dni = dni;
	}


	public String getMail() {
		return mail;
	}


	public void setMail(String mail) {
		this.mail = mail;
	}


	public String getTipus() {
		return tipus;
	}


	public void setTipus(String tipus) {
		this.tipus = tipus;
	}


	public String getSubtipus() {
		return subtipus;
	}


	public void setSubtipus(String subtipus) {
		this.subtipus = subtipus;
	}


	public String getIdp() {
		return idp;
	}


	public void setIdp(String idp) {
		this.idp = idp;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	public String getIdRolSelect() {
		return idRolSelect;
	}


	public void setIdRolSelect(String idRolSelect) {
		this.idRolSelect = idRolSelect;
	}
	
	
	
	
	 
	 
	 

}
